package com.lx.errorHanding.retry;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lixing
 * @date 2021/7/13 14:37
 */
@Component
public class RetryItemWrite implements ItemWriter<String> {
    @Override
    public void write(List<? extends String> list) throws Exception {
        for (String s : list) {
            System.out.println(s);
        }
    }
}
